a11y: not using default name for switch
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 10 Sep 2013 17:29:56 +0000 (19:29 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 11 Sep 2013 02:46:35 +0000 (22:46 -0400)
A proper name or label is required. In the same way, if the
widget is labelled, ATs uses to expose both the label and the
name, making the final output not really user-friendly.

https://bugzilla.gnome.org/show_bug.cgi?id=707872

gtk/a11y/gtkswitchaccessible.c

index bd94d3e91041be281b69fb7b6767dcf6b517b36d..92e3cb346ab85039d51ff8d733b6bb57b75802ac 100644 (file)
@@ -60,7 +60,6 @@ gtk_switch_accessible_initialize (AtkObject *accessible,
   ATK_OBJECT_CLASS (gtk_switch_accessible_parent_class)->initialize (accessible, widget);
 
   atk_object_set_role (accessible, ATK_ROLE_TOGGLE_BUTTON);
-  atk_object_set_name (accessible, C_("light switch widget", "Switch"));
   atk_object_set_description (accessible, _("Switches between on and off states"));
 }